// 定义函数接口
interface GreetFunction {
    (name: string): string;
}

let greet: GreetFunction = function (code: string) {
    console.log("hello " + code);
    return "1";
}

greet("张三")
